<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>WebChartViewer</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1">WebChartViewer</p>
<hr class="separator">
<div class="content">
WebChartViewer is the server side counterpart to the browser side Javascript <a href="JsChartViewer.htm">JsChartViewer</a>. It generates the necessary HTML tags to allow the JsChartViewer to support programming track cursors and using mouse clicks and drags to control zooming and scrolling. Its accepts AJAX chart update requests from JsChartViewer and responses to it. Many of the JsChartViewer attributes can be set or get on the server side through WebChartViewer.
<br><br>
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Method</th><th width="19%">Inherited</th><th>Description</th>
</tr>
<tr>
<td><a href="WebChartViewer.WebChartViewer.htm">WebChartViewer</a></td><td>(Self)</td><td>Creates a new WebChartViewer object.</td></tr><tr><td><a href="WebChartViewer.getRequest.htm">getRequest</a></td><td>(Self)</td><td>Gets the HttpServletRequest  object used to create the WebChartViewer.</td></tr><tr><td><a href="WebChartViewer.getId.htm">getId</a></td><td>(Self)</td><td>Gets the id of the WebChartViewer object.</td></tr><tr><td><a href="WebChartViewer.setChart.htm">setChart</a></td><td>(Self)</td><td>Assigns a <a href="BaseChart.htm">BaseChart</a> to the WebChartViewer for display using the given format.</td></tr><tr><td><a href="WebChartViewer.getChart.htm">getChart</a></td><td>(Self)</td><td>Gets the <a href="BaseChart.htm">BaseChart</a> object previously assigned to the WebChartViewer using <a href="WebChartViewer.getChart.htm">WebChartViewer.getChart</a>.</td></tr><tr><td><a href="WebChartViewer.setImageUrl.htm">setImageUrl</a></td><td>(Self)</td><td>Sets the URL used by the &lt;IMG&gt; tag to load the chart image.</td></tr><tr><td><a href="WebChartViewer.getImageUrl.htm">getImageUrl</a></td><td>(Self)</td><td>Gets the URL used by the &lt;IMG&gt; tag to load the chart image.</td></tr><tr><td><a href="WebChartViewer.setImageMap.htm">setImageMap</a></td><td>(Self)</td><td>Sets the image map associated with the chart.</td></tr><tr><td><a href="WebChartViewer.getImageMap.htm">getImageMap</a></td><td>(Self)</td><td>Gets the image map associated with the chart.</td></tr><tr><td><a href="WebChartViewer.setChartModel.htm">setChartModel</a></td><td>(Self)</td><td>Sets the <a href="jschartmodel.htm">Javascript Chart Model</a> of the chart for the purpose of support track cursors.</td></tr><tr><td><a href="WebChartViewer.getChartModel.htm">getChartModel</a></td><td>(Self)</td><td>Gets the <a href="jschartmodel.htm">Javascript Chart Model</a> of the chart.</td></tr><tr><td><a href="WebChartViewer.setChartMetrics.htm">setChartMetrics</a></td><td>(Self)</td><td>Sets the chart metrics of the chart.</td></tr><tr><td><a href="WebChartViewer.getChartMetrics.htm">getChartMetrics</a></td><td>(Self)</td><td>Gets the chart metrics of the chart.</td></tr><tr><td><a href="WebChartViewer.renderHTML.htm">renderHTML</a></td><td>(Self)</td><td>Generates the HTML tags necessary to represent the chart, image map, and the JsChartViewer state.</td></tr><tr><td><a href="WebChartViewer.partialUpdateChart.htm">partialUpdateChart</a></td><td>(Self)</td><td>Sends the response to a partial chart update request.</td></tr><tr><td><a href="WebChartViewer.streamChart.htm">streamChart</a></td><td>(Self)</td><td>Sends the image out as a MIME stream.</td></tr><tr><td><a href="WebChartViewer.streamChart2.htm">streamChart2</a></td><td>(Self)</td><td>Sends the chart out as a MIME stream.</td></tr><tr><td><a href="WebChartViewer.isPartialUpdateRequest.htm">isPartialUpdateRequest</a></td><td>(Self)</td><td>Checks if the current HTTP Request is a partial update request (AJAX request) sent using <a href="JsChartViewer.partialUpdate.htm">JsChartViewer.partialUpdate</a>.</td></tr><tr><td><a href="WebChartViewer.isFullUpdateRequest.htm">isFullUpdateRequest</a></td><td>(Self)</td><td>Checks if the current HTTP request is a full update request containing information from a <a href="JsChartViewer.htm">JsChartViewer</a>.</td></tr><tr><td><a href="WebChartViewer.isStreamRequest.htm">isStreamRequest</a></td><td>(Self)</td><td>Checks if the current HTTP request is a stream update request sent using <a href="JsChartViewer.streamUpdate.htm">JsChartViewer.streamUpdate</a>.</td></tr><tr><td><a href="WebChartViewer.isAttachmentRequest.htm">isAttachmentRequest</a></td><td>(Self)</td><td>Checks if the current partial update request (AJAX request) is an attachment request sent using <a href="JsChartViewer.partialUpdateAsAttachment.htm">JsChartViewer.partialUpdateAsAttachment</a>.</td></tr><tr><td><a href="WebChartViewer.isViewPortChangedEvent.htm">isViewPortChangedEvent</a></td><td>(Self)</td><td>Checks if the <a href="JsChartViewer.ViewPortChanged.htm">JsChartViewer.ViewPortChanged</a> event has occurred.</td></tr><tr><td><a href="WebChartViewer.getSenderClientId.htm">getSenderClientId</a></td><td>(Self)</td><td>Gets the id of the <a href="JsChartViewer.htm">JsChartViewer</a> that sends the current HTTP request.</td></tr><tr><td><a href="WebChartViewer.setViewPortLeft.htm">setViewPortLeft</a></td><td>(Self)</td><td>Sets the position of the left side of the viewport.</td></tr><tr><td><a href="WebChartViewer.getViewPortLeft.htm">getViewPortLeft</a></td><td>(Self)</td><td>Gets the position of the left side of the viewport.</td></tr><tr><td><a href="WebChartViewer.setViewPortTop.htm">setViewPortTop</a></td><td>(Self)</td><td>Sets the position of the top side of the viewport.</td></tr><tr><td><a href="WebChartViewer.getViewPortTop.htm">getViewPortTop</a></td><td>(Self)</td><td>Gets the position of the top side of the viewport.</td></tr><tr><td><a href="WebChartViewer.setViewPortWidth.htm">setViewPortWidth</a></td><td>(Self)</td><td>Sets the width of the viewport.</td></tr><tr><td><a href="WebChartViewer.getViewPortWidth.htm">getViewPortWidth</a></td><td>(Self)</td><td>Gets the width of the viewport.</td></tr><tr><td><a href="WebChartViewer.setViewPortHeight.htm">setViewPortHeight</a></td><td>(Self)</td><td>Sets the height of the viewport.</td></tr><tr><td><a href="WebChartViewer.getViewPortHeight.htm">getViewPortHeight</a></td><td>(Self)</td><td>Gets the height of the viewport.</td></tr><tr><td><a href="WebChartViewer.setMouseUsage.htm">setMouseUsage</a></td><td>(Self)</td><td>Sets the mouse usage mode.</td></tr><tr><td><a href="WebChartViewer.getMouseUsage.htm">getMouseUsage</a></td><td>(Self)</td><td>Gets the mouse usage mode.</td></tr><tr><td><a href="WebChartViewer.setZoomDirection.htm">setZoomDirection</a></td><td>(Self)</td><td>Sets the zoom direction for mouse zoom in/out actions.</td></tr><tr><td><a href="WebChartViewer.getZoomDirection.htm">getZoomDirection</a></td><td>(Self)</td><td>Gets the zoom direction for mouse zoom in/out actions.</td></tr><tr><td><a href="WebChartViewer.setScrollDirection.htm">setScrollDirection</a></td><td>(Self)</td><td>Sets the scroll direction for mouse scroll actions.</td></tr><tr><td><a href="WebChartViewer.getScrollDirection.htm">getScrollDirection</a></td><td>(Self)</td><td>Gets the scroll direction for mouse scroll actions.</td></tr><tr><td><a href="WebChartViewer.setZoomInRatio.htm">setZoomInRatio</a></td><td>(Self)</td><td>Sets the magnification ratio for each zoom in click of the mouse.</td></tr><tr><td><a href="WebChartViewer.getZoomInRatio.htm">getZoomInRatio</a></td><td>(Self)</td><td>Gets the magnification ratio for each zoom in click of the mouse.</td></tr><tr><td><a href="WebChartViewer.setZoomOutRatio.htm">setZoomOutRatio</a></td><td>(Self)</td><td>Sets the magnification ratio for each zoom out click of the mouse.</td></tr><tr><td><a href="WebChartViewer.getZoomOutRatio.htm">getZoomOutRatio</a></td><td>(Self)</td><td>Gets the magnification ratio for each zoom out click of the mouse.</td></tr><tr><td><a href="WebChartViewer.setZoomInWidthLimit.htm">setZoomInWidthLimit</a></td><td>(Self)</td><td>Sets the viewport width at maximum zoom in.</td></tr><tr><td><a href="WebChartViewer.getZoomInWidthLimit.htm">getZoomInWidthLimit</a></td><td>(Self)</td><td>Gets the viewport width at maximum zoom in for mouse zoom in actions.</td></tr><tr><td><a href="WebChartViewer.setZoomOutWidthLimit.htm">setZoomOutWidthLimit</a></td><td>(Self)</td><td>Sets the viewport width at maximum zoom out.</td></tr><tr><td><a href="WebChartViewer.getZoomOutWidthLimit.htm">getZoomOutWidthLimit</a></td><td>(Self)</td><td>Gets the viewport width at maximum zoom out for mouse zoom out actions.</td></tr><tr><td><a href="WebChartViewer.setZoomInHeightLimit.htm">setZoomInHeightLimit</a></td><td>(Self)</td><td>Sets the viewport height at maximum zoom in.</td></tr><tr><td><a href="WebChartViewer.getZoomInHeightLimit.htm">getZoomInHeightLimit</a></td><td>(Self)</td><td>Gets the viewport height at maximum zoom in for mouse zoom in actions.</td></tr><tr><td><a href="WebChartViewer.setZoomOutHeightLimit.htm">setZoomOutHeightLimit</a></td><td>(Self)</td><td>Sets the viewport height at maximum zoom out.</td></tr><tr><td><a href="WebChartViewer.getZoomOutHeightLimit.htm">getZoomOutHeightLimit</a></td><td>(Self)</td><td>Gets the viewport height at maximum zoom out for mouse zoom out actions.</td></tr><tr><td><a href="WebChartViewer.setMinimumDrag.htm">setMinimumDrag</a></td><td>(Self)</td><td>Sets the minimum mouse drag distance before it is considered as an intentional drag.</td></tr><tr><td><a href="WebChartViewer.getMinimumDrag.htm">getMinimumDrag</a></td><td>(Self)</td><td>Gets the minimum mouse drag distance before it is considered as an intentional drag.</td></tr><tr><td><a href="WebChartViewer.setSelectionBorderWidth.htm">setSelectionBorderWidth</a></td><td>(Self)</td><td>Sets the border width of the zoom selection box.</td></tr><tr><td><a href="WebChartViewer.getSelectionBorderWidth.htm">getSelectionBorderWidth</a></td><td>(Self)</td><td>Gets the border width of the zoom selection box.</td></tr><tr><td><a href="WebChartViewer.setSelectionBorderColor.htm">setSelectionBorderColor</a></td><td>(Self)</td><td>Sets the border color of the zoom selection box as an HTML color.</td></tr><tr><td><a href="WebChartViewer.getSelectionBorderColor.htm">getSelectionBorderColor</a></td><td>(Self)</td><td>Gets the border color of the zoom selection box.</td></tr><tr><td><a href="WebChartViewer.setZoomInCursor.htm">setZoomInCursor</a></td><td>(Self)</td><td>Sets the mouse cursor to be used when the mouse is used for zoom in.</td></tr><tr><td><a href="WebChartViewer.getZoomInCursor.htm">getZoomInCursor</a></td><td>(Self)</td><td>Gets the mouse cursor to be used when the mouse is used for zoom in.</td></tr><tr><td><a href="WebChartViewer.setZoomOutCursor.htm">setZoomOutCursor</a></td><td>(Self)</td><td>Sets the mouse cursor to be used when the mouse is used for zoom out.</td></tr><tr><td><a href="WebChartViewer.getZoomOutCursor.htm">getZoomOutCursor</a></td><td>(Self)</td><td>Gets the mouse cursor to be used when the mouse is used for zoom out.</td></tr><tr><td><a href="WebChartViewer.setNoZoomCursor.htm">setNoZoomCursor</a></td><td>(Self)</td><td>Sets the mouse cursor to be used when the mouse is used for zoom in/out, but the zoom in/out limits has been reached.</td></tr><tr><td><a href="WebChartViewer.getNoZoomCursor.htm">getNoZoomCursor</a></td><td>(Self)</td><td>Gets the mouse cursor to be used when the mouse is used for zoom in/out, but the zoom in/out limits has been reached.</td></tr><tr><td><a href="WebChartViewer.setScrollCursor.htm">setScrollCursor</a></td><td>(Self)</td><td>Sets the mouse cursor to be used when the mouse is used for scrolling.</td></tr><tr><td><a href="WebChartViewer.getScrollCursor.htm">getScrollCursor</a></td><td>(Self)</td><td>Gets the mouse cursor to be used when the mouse is used for scrolling.</td></tr><tr><td><a href="WebChartViewer.setCustomAttr.htm">setCustomAttr</a></td><td>(Self)</td><td>Sets a custom attribute.</td></tr><tr><td><a href="WebChartViewer.getCustomAttr.htm">getCustomAttr</a></td><td>(Self)</td><td>Gets a custom attribute.</td></tr><tr><td><a href="WebChartViewer.setFullRange.htm">setFullRange</a></td><td>(Self)</td><td>Defines the full range of a viewport data scale.</td></tr><tr><td><a href="WebChartViewer.getValueAtViewPort.htm">getValueAtViewPort</a></td><td>(Self)</td><td>Converts a viewport coordinate to a value of the specified data scale.</td></tr><tr><td><a href="WebChartViewer.getViewPortAtValue.htm">getViewPortAtValue</a></td><td>(Self)</td><td>Converts a value of the specified data scale to a viewport coordinate.</td></tr><tr><td><a href="WebChartViewer.syncLinearAxisWithViewPort.htm">syncLinearAxisWithViewPort</a></td><td>(Self)</td><td>Synchronizes a linear <a href="Axis.htm">Axis</a> with the part of the data scale in viewport.</td></tr><tr><td><a href="WebChartViewer.syncLogAxisWithViewPort.htm">syncLogAxisWithViewPort</a></td><td>(Self)</td><td>Synchronizes a logarithmic <a href="Axis.htm">Axis</a> with the part of the data scale in viewport.</td></tr><tr><td><a href="WebChartViewer.syncDateAxisWithViewPort.htm">syncDateAxisWithViewPort</a></td><td>(Self)</td><td>Synchronizes a date/time <a href="Axis.htm">Axis</a> with the part of the data scale in viewport.</td>
</tr>
</table>
</div>

</div>
<hr class="separator"><div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
